﻿using FrameworkCore.Migrations.Data;
using System.ComponentModel.DataAnnotations.Schema;

namespace Domain.Entities.ToDo;

/// <summary>
/// 分类
/// </summary>
[Table("ToDoCategories")]
public class ToDoCategory : BaseAuditableEntity, ISoftDeletedEntity
{
    /// <summary>
    /// 名称
    /// </summary>
    public string? Name { get; set; }

    /// <summary>
    /// 用户
    /// </summary>
    public long? CustomerId { get; set; }

    /// <summary>
    /// 用户
    /// </summary>
    public Customer? Customer { get; set; }

    /// <summary>
    /// 删除标识
    /// </summary>
    public bool? IsDeleted { get ; set; }

    public virtual ICollection<ToDoItemCategory> ToDoItemCategories { get; set; } = new List<ToDoItemCategory>();
}
